%h1.photo Upload a photo
%table.photo
  - form_for @photo, photos_url, :html => {:multipart => true}, :method => :put do |form|
    %tr
      %td.field_title Photo:
      %td.file_field= form.file_field     :uploaded_data
      %td.error= error_messages_for       :photo
    %tr
      %td.field_title Caption:
      %td.area= form.text_area            :caption
      %td.error= error_message_on         :photo, :caption
    %tr
      %td.field_title Show:
      %td.select_field
        %select{:name => "photo[show_id]"}
          %option{:value => ''}none
          - @shows.each do |show|
            %option{:value => show.id}
              = show.location + " on " + show.start_time.strftime("%B %o at %I:%M %p")
    %tr
      %td.submit= submit_tag 'Upload'